
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.ToolFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author sly
* @date 2023-10-18
**/
public interface ToolFileRepository extends JpaRepository<ToolFile, String>, JpaSpecificationExecutor<ToolFile> {

    ToolFile findToolFileByIdAndDelete(String id, Integer delete);

    ToolFile findToolFileById(String id);


    int countToolFilesByFileNameAndToolNameAndDelete(String fileName, String toolName, Integer delete);

    int countToolFilesByFileNameAndVersionAndDelete(String fileName, String version, Integer delete);
}